#ifndef COIN_H
#define COIN_H

#include <QObject>
#include <QPushButton>
#include <QTimer>

class Coin : public QPushButton
{
    Q_OBJECT
public:
    explicit Coin(QWidget *parent = nullptr);
    Coin(QString);

    QString normalPath = nullptr;

    int posX;
    int posY;
    bool flag;

    void changeFlag(void);

    QTimer *timer;

    int max = 8;
    int min = 1;
    bool isAnimation = false;
    void mousePressEvent(QMouseEvent *);
    bool isWin = false;
signals:

};

#endif // COIN_H
